package com.example.springbootbinlog.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DatabaseConfig {

    @Value("${binlog.server.id}")
    private long serverId;
    @Value("${binlog.host}")
    private String host;
    @Value("${binlog.port}")
    private int port;
    @Value("${binlog.user}")
    private String user;
    @Value("${binlog.password}")
    private String password;
    @Value("${binlog.database.table}")
    private String tableName;

    public long getServerId() {
        return serverId;
    }

    public String getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }

    public String getUser() {
        return user;
    }

    public String getPassword() {
        return password;
    }

    public String getTableName() {
        return tableName;
    }
}
